# CMakeLists.txt

cmake_minimum_required(VERSION 3.0)    #要求系统CMake最小的版本
project(chat)   #工程名字


# 配置编译选项，这里是在CMAKE_CXX_FLAGS基础上后面再加个 -g
set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} -g)

# 配置最终的可执行文件输出的路径
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)

link_directories(/usr/local/lib)

# 配置头文件搜索路径
include_directories(${PROJECT_SOURCE_DIR}/thirdparty)
include_directories(${PROJECT_SOURCE_DIR}/include)
include_directories(${PROJECT_SOURCE_DIR}/include/server)
include_directories(${PROJECT_SOURCE_DIR}/include/server/model)
include_directories(${PROJECT_SOURCE_DIR}/include/server/db)
include_directories(${PROJECT_SOURCE_DIR}/include/server/redis)
include_directories(${PROJECT_SOURCE_DIR}/include/server/kafka)
include_directories(${PROJECT_SOURCE_DIR}/include/client)
# 加载子目录
add_subdirectory(src)